<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<? include '../console/device_console.php'; $mysql=new Mysql();?>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>无标题文档</title>
<script src="../js/jquery-1.8.3.min.js"></script>
<link href="../css/iframe01.css" rel="stylesheet" type="text/css" />
</head>

<body><center>
<table border="0" cellpadding="5" cellspacing="0">
<tr align="left"><th width="12%">类型</th><th width="12%">型号</th><th width="12%">厂商</th><th width="12%">配置</th><th width="12%">Mac地址</th><th width="12%">OS</th><th width="12%">版本号</th><th width="12%">其他</th></tr>
<?
$keyword=$_POST['keyword'];
$result_array=$mysql->getSelectDevice($keyword);
foreach($result_array as $v){
	echo "<tr><td>".$v['type']."</td><td>".$v['number']."</td><td>".$v['product']."</td><td>".$v['info']."</td><td>".$v['mac']."</td><td>".$v['os']."</td><td>".$v['version']."</td><td>".$v['other']."</td></tr>";
}
?>
</table>
</center>
<input type="button" onclick="add_device()" value="添加" class="button01" style="margin:50px;" />
</body>
<script language="javascript">
function add_device(){
	window.open('./device_iframe_add.php','_self');
}
</script>
</html>